#include"CPolygon.h"
void CPolygon::setvalues(int a, int b)
{
	w = a;
	h = b;
}
int CRectangle::area()
{
	return (w*h);

}
int CTriangle::area()
{
	return (w*h / 2);
}